package com.joker.orange.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户扣单配置视图对象 t_user_deduction
 *
 * @author Joker
 * @date 2024-07-15
 */
@Data
@ExcelIgnoreUnannotated
public class UserDeductionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    private Long userId;

    @ExcelProperty(value = "代理名称")
    private String nickName;

    /**
     * 扣单类型（0-平台、1-一级代理、2-二级代理、3-三级代理）
     */
    @ExcelProperty(value = "扣单类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-平台、1-一级代理、2-二级代理、3-三级代理")
    private String deductionType;

    /**
     * 订单量
     */
    @ExcelProperty(value = "订单量")
    private String orderCount;

    /**
     * 扣单量
     */
    @ExcelProperty(value = "扣单量")
    private String registerCount;

}
